<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of main
 *
 * @author Костя
 */
class Main extends CI_Controller {

    public function index() {
        if ($this->session->userdata('logged_in')) {
            redirect('deals', 'location', 301);
        }elseif($this->session->userdata('logged_in') === FALSE){
            redirect('/user/login', 'location', 301);
        }else{
            redirect('/tour', 'location', 301);
        }
    }
    
 
}

?>
